PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-03-12 10:11:22.635713+00:00 (UTC)
In US/Central Time, this is 2024-03-12 05:11:22.635713-05:00
## Visualize Principal Component 1
pc1, loadings = pca_index.pca(dfn, module="scikitlearn")
pc1.plot();
../../_images/5614e402c2d90d69677fc2164953cdd9d979b3ff0d1dce9eabd93580995986a6.png
# Simple version
fig = px.line(pc1)
fig.show()
vix = df.loc[:,['VIX']]
vix.plot()
<Axes: xlabel='DATE'>
../../_images/f1a0218d713677874f667b51d8ab9845be574842533a434f67bec57e46427fae.png
fig = px.line(vix)
fig.show()
../../_images/78b59e075fb07356e8ab346912e988c01d4d82f544a487245411cf7e2b6417e0.png